package com.parking.mgr.common.pojo.login;

import com.parking.mgr.common.enums.LoginStatusEnums;
import com.parking.mgr.common.enums.NeedLoginStatusEnums;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @ClassName LoginStatus
 * @Description TODO
 * @author: zhijianpu
 * @Date: 2025/2/28
 */
@Data
@ApiModel(description = "登录状态响应数据")
public class LoginStatus {

    /**
     * 是否登录
     */
    @ApiModelProperty(value = "是否登录")
    private String loginState;

    /**
     * 是否需要登录
     */
    @ApiModelProperty(value = "是否需要登录")
    private Integer needLogin;

    public LoginStatus() {
        this.loginState = LoginStatusEnums.NO_LOGIN_STATE.getCode();
        this.needLogin = NeedLoginStatusEnums.NEED_LOGIN.getCode();
    }

    public LoginStatus(String loginStat, Integer needLogin) {
        this.loginState = loginStat;
        this.needLogin = needLogin;
    }

}
